import org.apache.kudu.client.KuduClient;
import org.apache.kudu.client.KuduException;

public class DeleteTable {
    public static void main(String[] args) {
        // 指定master
        String masterAdd = "server2";
        KuduClient client = new KuduClient.KuduClientBuilder(masterAdd).defaultSocketReadTimeoutMs(6000).build();

        // 删除表
        try {
            client.deleteTable("student");
        } catch (KuduException e) {
            e.printStackTrace();
        } finally {
            try {
                client.close();
            } catch (KuduException e) {
                e.printStackTrace();
            }
        }
    }
}
